package structure.pattern.decorator.door;

import structure.pattern.decorator.HouseDecorator;
import structure.pattern.decorator.door.DoorFactory;

/**
 * @Autor: yuanyongan
 * @Description:
 * @Date 2023/1/9 14:58
 */
public class WoodDoorDecorator extends DoorFactory {
    public WoodDoorDecorator(HouseDecorator houseDecorator) {
        super(houseDecorator);
    }

    public void operate(){
        houseDecorator.operate();
        addWoodDoor();

    }
    public void addWoodDoor(){
        System.out.println("给房间加上木门");
    }
}
